www.gusucode.com > 落叶冰点万能企业网站内容管理系统 V9.1 > 落叶冰点万能企业网站内容管理系统 V9.1\code\admin\adminModelCustomPage\D_edit_template_select.asp

    
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>

<%


'**************************************************************
' 新动软网站管理系统
' 官方网站: http://www.aspcpu.com
' 系统作者: 阮丁远(网名:天下程序)
' Copyright 新动软网站管理系统 版权所有
'**************************************************************


%>


<LINK href="../css.css" type=text/css rel=stylesheet>
<%

dir_set="../../"


%>


<!--#include file=../../inc/conn.asp-->
<!--#include file=../../inc/Functionb.asp-->

<!--#include file=../../inc/ajaxLIB.asp-->

<!--#include file=../inc/checkadmin2.asp-->

<!--#include file=../../inc/functionFiless.asp-->

<!--#include file=../../inc/ND_class_function.asp-->




<%
AJAXshowLoader()


%>









<%


ss4=request("fname")
sss3=ss4
ss4=left(ss4,len(ss4)-1) '去掉最后一个/号
if instr(1,sss3,"/",1)=0 then
ssddds12=""
else
ssddds12=left(ss4,instrrev(ss4,"/"))
end if
%>













<!------------------------------------------------div:new2 mode_select------------------------>



<div  id="newssss2" style="filter:blendTrans(duration=1);left:1px;top:1px; visibility:hidden;display:none;width:200px; z-index:2; border: 1px dashed #999999;">


<table width="750" height="307"  border="1" cellpadding="0" cellspacing="0" bgcolor="#cccccc" bordercolor="#333333">


<tr><td height="20" width=480 background="../images/titbg.gif" bordercolor="#333333">
选择编辑模式 
</td><td height="20" background="../images/titbg.gif" bordercolor="#333333">
<!--a href=# onclick="closen2();">关闭</a-->
</td></tr>

<tr><td colspan=3>

<!--

&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;

1.<a href="D_edit_a_template_before.asp?edittype=0&fname=<%=ss4%>&pname=<%=request("pname")%>&pid=<%=request("pid")%>">进入代码视图编辑模式(可能乱码)</a><br><br-->
&nbsp;
&nbsp;
&nbsp;



1.<a href="D_edit_a_template_before.asp?fbpath=<%=request("pname")&"/"&ssddds12%>&edittype=1&fname=<%=ss4%>&pname=<%=request("pname")%>&pid=<%=request("pid")%>&fpath=<%=request("fpath")%>">点击本处进入可视化编辑模式(前提是已在根目录下运行本系统)</a><br><br>

&nbsp;
&nbsp;
&nbsp;



2.自己手动用dreamweaver打开本系统的/Model/Models/<%=request("pname")&"/"&ss4%>文件来编辑后, <br>
&nbsp;
&nbsp;
&nbsp;

并点击重新编译本模型并刷新本模型生成的后台




<br><br>
&nbsp;
&nbsp;
&nbsp;

<font color="#FF0000">
注意:如果在用第二种方式编辑时dreamweaver中的某些网页表格被撑开很严重,请换用上面的第一种方式即
<br>
&nbsp;
&nbsp;
&nbsp;





进入可视化编辑模式</font>

</td></tr>





</table>


</div>
<!----------------------------end------div:new2  mode_select------------------------>


<script language="javascript">

function show_a(){


AJAXfade(1,'newssss2')

document.bgColor ="#eeeeee";


}






</script>











<%


if instr(1,ss4,"/",1)<>0  then
ss44=mid(ss4,inStrRev(ss4,"/")+1,len(ss4)-(inStrRev(ss4,"/")+1)+1)


else

ss44=ss4
end if
extnm=lcase(mid(ss44,inStrRev(ss44,".")+1,len(ss44)-inStrRev(ss44,".")))

set filea=new Cls_FSO

sss111=filea.ShowFileAccessInfo(server.mappath("../../templates/"&request("pname")&"/"&ss4),7)


if  (sss111/1024)<500 and (extnm="asp" or extnm="aspx" or extnm="js" or extnm="php"  or extnm="htm"   or extnm="html"   or extnm="shtml"  or extnm="jsp") then

%>



<script language=javascript>
show_a();

</script>



<%


else


%>


<script language=javascript>
alert("只能编辑扩展名为.asp或.aspx或.js或.php或.htm或.html或.shtml或.jsp 的文件,且文件大小要小于500K,才能被编辑,如果不能被编辑,你可以尝试用dreamweaver来编辑这个文件,文件在templates目录下");

history.go(-1);

</script>





<%
end if










%>


<%
AJAXcloseLoader()
%>